//
//  YDBankCardModel.m
//  PeiZiWangBei
//
//  Created by LK-IOS on 2017/11/20.
//  Copyright © 2017年 LK-IOS. All rights reserved.
//

#import "YDBankCardModel.h"



@implementation YDBankCardModel


+(NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{
             @"Id" : @"id"
             };
}

-(NSString *)formatterBnakCard
{
    return [NSString formatterBankCard:_bankCard];
}
-(NSString *)fourStarFormatterBankCard
{
    if (_bankCard.length) {
        NSString *subStr = [_bankCard substringWithRange:NSMakeRange(_bankCard.length - 4, 4)];
        NSString *froStr = [_bankCard substringWithRange:NSMakeRange(0, 4)];
        return [NSString stringWithFormat:@"%@ **** **** %@",froStr,subStr];
    }else
    {
        return _bankCard;
    }
}
@end
